///////////////////////////////////////////////////////////////////////////
// C++ code generated with wxFormBuilder (version Aug 25 2009)
// http://www.wxformbuilder.org/
//
// PLEASE DO "NOT" EDIT THIS FILE!
///////////////////////////////////////////////////////////////////////////

#include "vm_gui.h"

///////////////////////////////////////////////////////////////////////////

SettingsDialogGui::SettingsDialogGui( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	this->SetExtraStyle( wxWS_EX_VALIDATE_RECURSIVELY );
	
	wxBoxSizer* bSizer1;
	bSizer1 = new wxBoxSizer( wxVERTICAL );
	
	m_notebook1 = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxNB_FLAT );
	m_panelProject = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxBoxSizer* bSizer9;
	bSizer9 = new wxBoxSizer( wxVERTICAL );
	
	wxFlexGridSizer* fgSizer2;
	fgSizer2 = new wxFlexGridSizer( 0, 2, 0, 0 );
	fgSizer2->AddGrowableCol( 1 );
	fgSizer2->SetFlexibleDirection( wxBOTH );
	fgSizer2->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	wxStaticText* m_staticText11;
	m_staticText11 = new wxStaticText( m_panelProject, wxID_ANY, _("Version path"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText11->Wrap( -1 );
	fgSizer2->Add( m_staticText11, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_dirVersionPath = new wxDirPickerCtrl( m_panelProject, wxID_ANY, wxEmptyString, _("Select a folder"), wxDefaultPosition, wxDefaultSize, wxDIRP_DEFAULT_STYLE );
	fgSizer2->Add( m_dirVersionPath, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	wxStaticText* m_staticText1;
	m_staticText1 = new wxStaticText( m_panelProject, wxID_ANY, _("Version file"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText1->Wrap( -1 );
	fgSizer2->Add( m_staticText1, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_editVersionFile = new wxTextCtrl( m_panelProject, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_editVersionFile->SetValidator( wxGenericValidator( &m_sFilename ) );
	
	fgSizer2->Add( m_editVersionFile, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	bSizer9->Add( fgSizer2, 0, wxEXPAND|wxBOTTOM, 5 );
	
	wxStaticBoxSizer* sbSizer2;
	sbSizer2 = new wxStaticBoxSizer( new wxStaticBox( m_panelProject, wxID_ANY, _("SVN") ), wxVERTICAL );
	
	wxCheckBox* m_checkSvnBuild;
	m_checkSvnBuild = new wxCheckBox( m_panelProject, wxID_ANY, _("Use SVN revision as build"), wxDefaultPosition, wxDefaultSize, 0 );
	m_checkSvnBuild->SetValidator( wxGenericValidator( &m_bSvnBuild ) );
	
	sbSizer2->Add( m_checkSvnBuild, 0, wxALL, 5 );
	
	wxBoxSizer* bSizer91;
	bSizer91 = new wxBoxSizer( wxHORIZONTAL );
	
	wxStaticText* m_staticText141;
	m_staticText141 = new wxStaticText( m_panelProject, wxID_ANY, _("SVN command"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText141->Wrap( -1 );
	bSizer91->Add( m_staticText141, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_fpSvnCommand = new wxFilePickerCtrl( m_panelProject, wxID_ANY, wxEmptyString, _("Select a file"), wxT("*.*"), wxDefaultPosition, wxDefaultSize, wxFLP_DEFAULT_STYLE );
	bSizer91->Add( m_fpSvnCommand, 1, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	sbSizer2->Add( bSizer91, 1, wxEXPAND, 5 );
	
	bSizer9->Add( sbSizer2, 0, wxEXPAND, 5 );
	
	m_checkAutoIncBuild = new wxCheckBox( m_panelProject, wxID_ANY, _("Auto increment Build"), wxDefaultPosition, wxDefaultSize, 0 );
	m_checkAutoIncBuild->SetValidator( wxGenericValidator( &m_bAutoIncBuild ) );
	m_checkAutoIncBuild->Enable( false );
	
	bSizer9->Add( m_checkAutoIncBuild, 0, wxALL, 5 );
	
	m_checkUseExternalSettingFile = new wxCheckBox( m_panelProject, wxID_ANY, _("Use external setting file to store version informations"), wxDefaultPosition, wxDefaultSize, 0 );
	m_checkUseExternalSettingFile->SetValidator( wxGenericValidator( &m_bUseExternalSettingFile ) );
	
	bSizer9->Add( m_checkUseExternalSettingFile, 0, wxALL, 5 );
	
	m_panelProject->SetSizer( bSizer9 );
	m_panelProject->Layout();
	bSizer9->Fit( m_panelProject );
	m_notebook1->AddPage( m_panelProject, _("Project"), true );
	m_panelFile = new wxPanel( m_notebook1, wxID_ANY, wxDefaultPosition, wxDefaultSize, wxTAB_TRAVERSAL );
	wxStaticBoxSizer* sbSizer1;
	sbSizer1 = new wxStaticBoxSizer( new wxStaticBox( m_panelFile, wxID_ANY, _("Variable names") ), wxVERTICAL );
	
	wxFlexGridSizer* fgSizer4;
	fgSizer4 = new wxFlexGridSizer( 0, 2, 0, 0 );
	fgSizer4->AddGrowableCol( 1 );
	fgSizer4->SetFlexibleDirection( wxBOTH );
	fgSizer4->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	wxStaticText* m_staticText9;
	m_staticText9 = new wxStaticText( m_panelFile, wxID_ANY, _("Major"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText9->Wrap( -1 );
	fgSizer4->Add( m_staticText9, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
	
	m_editMajorVar = new wxTextCtrl( m_panelFile, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_editMajorVar->SetValidator( wxTextValidator( wxFILTER_ASCII, &m_sMajorVar ) );
	
	fgSizer4->Add( m_editMajorVar, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	wxStaticText* m_staticText10;
	m_staticText10 = new wxStaticText( m_panelFile, wxID_ANY, _("Minor"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText10->Wrap( -1 );
	fgSizer4->Add( m_staticText10, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
	
	m_editMinorVar = new wxTextCtrl( m_panelFile, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_editMinorVar->SetValidator( wxTextValidator( wxFILTER_ASCII, &m_sMinorVar ) );
	
	fgSizer4->Add( m_editMinorVar, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	wxStaticText* m_staticText111;
	m_staticText111 = new wxStaticText( m_panelFile, wxID_ANY, _("Release"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText111->Wrap( -1 );
	fgSizer4->Add( m_staticText111, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
	
	m_editReleaseVar = new wxTextCtrl( m_panelFile, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_editReleaseVar->SetValidator( wxTextValidator( wxFILTER_ASCII, &m_sReleaseVar ) );
	
	fgSizer4->Add( m_editReleaseVar, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	wxStaticText* m_staticText12;
	m_staticText12 = new wxStaticText( m_panelFile, wxID_ANY, _("Build"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText12->Wrap( -1 );
	fgSizer4->Add( m_staticText12, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
	
	m_editBuildVar = new wxTextCtrl( m_panelFile, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_editBuildVar->SetValidator( wxTextValidator( wxFILTER_ASCII, &m_sBuildVar ) );
	
	fgSizer4->Add( m_editBuildVar, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxEXPAND, 5 );
	
	wxStaticText* m_staticText13;
	m_staticText13 = new wxStaticText( m_panelFile, wxID_ANY, _("Status"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText13->Wrap( -1 );
	fgSizer4->Add( m_staticText13, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
	
	m_editStatusVar = new wxTextCtrl( m_panelFile, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_editStatusVar->SetValidator( wxTextValidator( wxFILTER_ASCII, &m_sStatusVar ) );
	
	fgSizer4->Add( m_editStatusVar, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxStaticText* m_staticText14;
	m_staticText14 = new wxStaticText( m_panelFile, wxID_ANY, _("Version"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText14->Wrap( -1 );
	fgSizer4->Add( m_staticText14, 0, wxALL|wxALIGN_CENTER_VERTICAL|wxALIGN_RIGHT, 5 );
	
	m_editVersionVar = new wxTextCtrl( m_panelFile, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_editVersionVar->SetValidator( wxTextValidator( wxFILTER_ASCII, &m_sVersionVar ) );
	
	fgSizer4->Add( m_editVersionVar, 0, wxALL|wxEXPAND|wxALIGN_CENTER_VERTICAL, 5 );
	
	sbSizer1->Add( fgSizer4, 1, wxEXPAND|wxBOTTOM, 5 );
	
	wxBoxSizer* bSizer11;
	bSizer11 = new wxBoxSizer( wxHORIZONTAL );
	
	m_checkUseNamespace = new wxCheckBox( m_panelFile, wxID_ANY, _("Use namespace :"), wxDefaultPosition, wxDefaultSize, 0 );
	m_checkUseNamespace->SetValidator( wxGenericValidator( &m_bUseNamespace ) );
	
	bSizer11->Add( m_checkUseNamespace, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_editNamespaceName = new wxTextCtrl( m_panelFile, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0 );
	m_editNamespaceName->SetValidator( wxTextValidator( wxFILTER_ASCII, &m_sNamespaceName ) );
	
	bSizer11->Add( m_editNamespaceName, 1, wxALL, 5 );
	
	sbSizer1->Add( bSizer11, 0, wxEXPAND, 5 );
	
	m_panelFile->SetSizer( sbSizer1 );
	m_panelFile->Layout();
	sbSizer1->Fit( m_panelFile );
	m_notebook1->AddPage( m_panelFile, _("File"), false );
	
	bSizer1->Add( m_notebook1, 1, wxEXPAND, 5 );
	
	m_sdbSizer2 = new wxStdDialogButtonSizer();
	m_sdbSizer2OK = new wxButton( this, wxID_OK );
	m_sdbSizer2->AddButton( m_sdbSizer2OK );
	m_sdbSizer2Cancel = new wxButton( this, wxID_CANCEL );
	m_sdbSizer2->AddButton( m_sdbSizer2Cancel );
	m_sdbSizer2->Realize();
	bSizer1->Add( m_sdbSizer2, 0, wxEXPAND|wxTOP, 5 );
	
	this->SetSizer( bSizer1 );
	this->Layout();
	
	// Connect Events
	m_sdbSizer2OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SettingsDialogGui::OnOK ), NULL, this );
}

SettingsDialogGui::~SettingsDialogGui()
{
	// Disconnect Events
	m_sdbSizer2OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( SettingsDialogGui::OnOK ), NULL, this );
}

VersionDialogGui::VersionDialogGui( wxWindow* parent, wxWindowID id, const wxString& title, const wxPoint& pos, const wxSize& size, long style ) : wxDialog( parent, id, title, pos, size, style )
{
	this->SetSizeHints( wxDefaultSize, wxDefaultSize );
	
	wxBoxSizer* bSizer3;
	bSizer3 = new wxBoxSizer( wxVERTICAL );
	
	m_checkCanEdit = new wxCheckBox( this, wxID_ANY, _("Manualy enter version informations"), wxDefaultPosition, wxDefaultSize, 0 );
	bSizer3->Add( m_checkCanEdit, 0, wxALL, 5 );
	
	wxFlexGridSizer* fgSizer1;
	fgSizer1 = new wxFlexGridSizer( 2, 2, 0, 0 );
	fgSizer1->SetFlexibleDirection( wxBOTH );
	fgSizer1->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED );
	
	m_staticText2 = new wxStaticText( this, wxID_ANY, _("Major"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText2->Wrap( -1 );
	fgSizer1->Add( m_staticText2, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxBoxSizer* bSizer4;
	bSizer4 = new wxBoxSizer( wxHORIZONTAL );
	
	m_editMajor = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	m_editMajor->SetValidator( wxGenericValidator( &m_major ) );
	
	bSizer4->Add( m_editMajor, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_btnIncMajor = new wxButton( this, wxID_ANY, _("+"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer4->Add( m_btnIncMajor, 0, wxALL, 5 );
	
	fgSizer1->Add( bSizer4, 1, wxEXPAND, 5 );
	
	m_staticText3 = new wxStaticText( this, wxID_ANY, _("Minor"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText3->Wrap( -1 );
	fgSizer1->Add( m_staticText3, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxBoxSizer* bSizer5;
	bSizer5 = new wxBoxSizer( wxHORIZONTAL );
	
	m_editMinor = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	m_editMinor->SetValidator( wxGenericValidator( &m_minor ) );
	
	bSizer5->Add( m_editMinor, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_btnIncMinor = new wxButton( this, wxID_ANY, _("+"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer5->Add( m_btnIncMinor, 0, wxALL, 5 );
	
	fgSizer1->Add( bSizer5, 1, wxEXPAND, 5 );
	
	m_staticText4 = new wxStaticText( this, wxID_ANY, _("Release"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText4->Wrap( -1 );
	fgSizer1->Add( m_staticText4, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxBoxSizer* bSizer6;
	bSizer6 = new wxBoxSizer( wxHORIZONTAL );
	
	m_editRelease = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	m_editRelease->SetValidator( wxGenericValidator( &m_release ) );
	
	bSizer6->Add( m_editRelease, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_btnIncRelease = new wxButton( this, wxID_ANY, _("+"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer6->Add( m_btnIncRelease, 0, wxALL, 5 );
	
	fgSizer1->Add( bSizer6, 1, wxEXPAND, 5 );
	
	m_staticText5 = new wxStaticText( this, wxID_ANY, _("Build"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText5->Wrap( -1 );
	fgSizer1->Add( m_staticText5, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	wxBoxSizer* bSizer7;
	bSizer7 = new wxBoxSizer( wxHORIZONTAL );
	
	m_editBuild = new wxTextCtrl( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxTE_READONLY );
	m_editBuild->SetValidator( wxGenericValidator( &m_build ) );
	
	bSizer7->Add( m_editBuild, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_btnIncBuild = new wxButton( this, wxID_ANY, _("+"), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT );
	bSizer7->Add( m_btnIncBuild, 0, wxALL, 5 );
	
	fgSizer1->Add( bSizer7, 1, wxEXPAND, 5 );
	
	m_staticText6 = new wxStaticText( this, wxID_ANY, _("Status"), wxDefaultPosition, wxDefaultSize, 0 );
	m_staticText6->Wrap( -1 );
	fgSizer1->Add( m_staticText6, 0, wxALL|wxALIGN_CENTER_VERTICAL, 5 );
	
	m_comboStatus = new wxComboBox( this, wxID_ANY, wxEmptyString, wxDefaultPosition, wxDefaultSize, 0, NULL, 0 );
	m_comboStatus->Append( _("Alpha") );
	m_comboStatus->Append( _("Beta") );
	m_comboStatus->Append( _("Release") );
	m_comboStatus->SetValidator( wxGenericValidator( &m_status ) );
	
	fgSizer1->Add( m_comboStatus, 0, wxALL|wxEXPAND, 5 );
	
	bSizer3->Add( fgSizer1, 1, wxEXPAND, 5 );
	
	m_sdbSizer1 = new wxStdDialogButtonSizer();
	m_sdbSizer1OK = new wxButton( this, wxID_OK );
	m_sdbSizer1->AddButton( m_sdbSizer1OK );
	m_sdbSizer1Cancel = new wxButton( this, wxID_CANCEL );
	m_sdbSizer1->AddButton( m_sdbSizer1Cancel );
	m_sdbSizer1->Realize();
	bSizer3->Add( m_sdbSizer1, 0, wxEXPAND|wxTOP, 5 );
	
	this->SetSizer( bSizer3 );
	this->Layout();
	bSizer3->Fit( this );
	
	// Connect Events
	m_checkCanEdit->Connect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( VersionDialogGui::OnCheckCanEdit ), NULL, this );
	m_btnIncMajor->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnIncMajor ), NULL, this );
	m_btnIncMinor->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnIncMinor ), NULL, this );
	m_btnIncRelease->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnIncRelease ), NULL, this );
	m_btnIncBuild->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnIncBuild ), NULL, this );
	m_sdbSizer1OK->Connect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnOK ), NULL, this );
}

VersionDialogGui::~VersionDialogGui()
{
	// Disconnect Events
	m_checkCanEdit->Disconnect( wxEVT_COMMAND_CHECKBOX_CLICKED, wxCommandEventHandler( VersionDialogGui::OnCheckCanEdit ), NULL, this );
	m_btnIncMajor->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnIncMajor ), NULL, this );
	m_btnIncMinor->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnIncMinor ), NULL, this );
	m_btnIncRelease->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnIncRelease ), NULL, this );
	m_btnIncBuild->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnIncBuild ), NULL, this );
	m_sdbSizer1OK->Disconnect( wxEVT_COMMAND_BUTTON_CLICKED, wxCommandEventHandler( VersionDialogGui::OnOK ), NULL, this );
}
